package com.coderdream.chapter09.bridge.a3;

public class IncreaseDisplay extends CountDisplay{
	
	private int step; // 增加次數

	public IncreaseDisplay(DisplayImpl impl, int step) {
		super(impl);
		this.step = step;
	}
	
	public void increaseDisplay(int level) {
		int count = 0;
		
		for (int i = 0; i < level; i++) {
			this.multiDisplay(count);
			count += step;
		}
	}

}
